/**
 * Filename: YNContactUser.java
 * @author  Firefly
 * @contact postfirefly@163.com
 * @time    2016/3/9 1:13
 */
package com.github.postsanf.yinian.bean;
/**
 * 忆年联系人
 */
public class YNContactUser extends BaseBean
{
    private int    id;			 //ID
    private String name;		 //联系人
    private String number;		 //联系号码
    private String nameLetters;  //联系人首字母
    public YNContactUser(int id,String name,String number) {
        setId(id);
        setNumber(number);
        setName(name);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getNumber() {
        return number;
    }
    public void setNumber(String number) {
        this.number = number;
    }
    public String getNameLetters() {
        return nameLetters;
    }
    public void setNameLetters(String nameLetters) {
        this.nameLetters = nameLetters;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof YNContactUser) {
            return this.getNumber() == ((YNContactUser) o).getNumber();
        }
        return super.equals(o);
    }
}